<%--
  Created by IntelliJ IDEA.
  User: EDY
  Date: 2023-10-30
  Time: 10:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="../../js/jquery-3.3.1.js"></script>
    <script src="../../js/bootstrap-table.min.js"></script>
    <script src="../../js/bootstrap.bundle.min.js"></script>
    <script src="../../js/bootstrap-table-zh-CN.min.js"></script>
    <script src="../../js/jquery.form.js"></script>
    <script src="../../js/jquery.validate.js"></script>
    <script src="../../js/messages_zh.js"></script>
    <link rel="stylesheet" href="../../css/bootstrap-table.min.css"></link>
    <link rel="stylesheet" href="../../css/bootstrap.min.css"></link>
</head>
<body>
<form id="mutiValidation">
    <div style="width:100%;">
        <div>
            <div>
                <div>
                    <div style="height:780px">
                        <table width="100%">
                            <tbody>
                            <tr height="20" >
                                <td>
                                    <span style="color: #0c84ff">您正在做的业务是：库存管理--安全库存配置管理--安全库存配置单复核</span>
                                </td>
                            </tr>
                            <tr height="20" class="TR_STYLE1">
                                <td align="right">
                                    <div class="DIV_STYLE1">
                                        审核通过<input type="radio" name="checkTag" value="S001-1" checked="checked">
                                        审核不通过<input type="radio" name="checkTag" value="S001-2">
                                        <input type="submit" value="复核">
                                        <input type="button" value="返回" onclick="history.back();">
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                        <table align="center">
                            <tbody>
                            <tr>
                                <td colspan="4">
                                    <div style="background: #0c84ff;width:100%; line-height:10px; padding:5px; color:#FFFFFF; font-weight:bold ">
                                        主信息
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td bgcolor="#D2E9FF" align="right">档案编号
                                </td>
                                <td valign="top" bgcolor="#eeeeee" colspan="3">
                                    <input name="productId" type="value" readonly style="border: 0px;background:#eeeeee;outline: none">
                                </td>
                            </tr>
                            <tr>
                                <td bgcolor="#D2E9FF" align="right">
                                    产品名称
                                </td>
                                <td valign="top" bgcolor="#eeeeee" width="37.4%">
                                    <input type="text" name="productName" style="width:80%">
                                </td>
                                <td bgcolor="#D2E9FF" align="right">
                                    制造商
                                </td>
                                <td bgcolor="#eeeeee" bordercolor="#000000" class="TD_STYLE2"
                                    width="37.4%">
                                    <input type="text" name="factoryName" style="width:80%">
                                </td>
                            </tr>


                            <tr>
                                <td bgcolor="#D2E9FF" align="right">
                                    I级分类
                                </td>
                                <td valign="top" bgcolor="#eeeeee" width="13%">
                                    <select name="select1" style="width:49%">
                                        <option value="01/电子" selected="">01/电子</option>
                                    </select>
                                </td>
                                <td bgcolor="#D2E9FF" align="right">
                                    II级分类
                                </td>
                                <td valign="top" bgcolor="#eeeeee" width="13%">
                                    <select name="select2" style="width:49%">
                                        <option value="01/计算机" selected="">01/计算机</option>
                                    </select>
                                </td>
                            </tr>
                            <tr height="20" class="TR_STYLE1">
                                <td bgcolor="#D2E9FF" align="right">
                                    III级分类
                                </td>
                                <td valign="top" bgcolor="#eeeeee" width="13%">
                                    <select name="select3" style="width:49%">
                                        <option value="01/服务器" selected="">01/服务器</option>
                                    </select>
                                </td>
                                <td bgcolor="#D2E9FF"  align="right">
                                    产品简称
                                </td>
                                <td valign="top" bgcolor="#eeeeee" width="13%">
                                    <input type="text" name="productNick" style="width:49%"></td>
                            </tr>
                            <tr height="20" class="TR_STYLE1">
                                <td bgcolor="#D2E9FF" align="right">
                                    用途类型
                                </td>
                                <td valign="top" bgcolor="#eeeeee" width="13%">
                                    <select name="select3" style="width:49%">
                                        <option value="Y001-1">商品</option>

                                        <option value="Y001-2">物料</option>
                                    </select>
                                </td>
                                <td bgcolor="#D2E9FF" bordercolorlight="#000000" bordercolordark="#000000" align="right"
                                    class="TD_STYLE1" width="11%">档次级别
                                </td>
                                <td valign="top" bgcolor="#eeeeee" bordercolor="#000000" class="TD_STYLE2" width="13%">
                                    <select name="productClass" style="width:49%">

                                        <option value="D001-1">高档</option>

                                        <option value="D001-2">中档</option>

                                        <option value="D001-3">低档</option>


                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td bgcolor="#D2E9FF" align="right">
                                    计量单位
                                </td>
                                <td valign="top" bgcolor="#eeeeee">
                                    <input type="text" name="personalUnit" style="width:49%">
                                </td>
                                <td bgcolor="#D2E9FF" align="right">
                                    计量值
                                </td>
                                <td valign="top" bgcolor="#eeeeee">
                                    <input type="text" name="personalValue" style="width:49%">
                                </td>
                            </tr>
                            <tr>
                                <td bgcolor="#D2E9FF" align="right">
                                    市场单价(元)
                                </td>
                                <td valign="top" bgcolor="#eeeeee">
                                    <input type="text" name="listPrice" readonly style="outline: none;background:#eeeeee;border:0px;width:49%">
                                </td>
                                <td bgcolor="#D2E9FF" align="right">
                                    计划成本单价
                                </td>
                                <td valign="top" bgcolor="#eeeeee">
                                    <input type="text" name="costPrice" style="width:49%">
                                </td>
                            </tr>
                            <tr>
                                <td colspan="4">
                                    <div style="background: #0c84ff;width:100%; line-height:10px; padding:5px; color:#FFFFFF; font-weight:bold ">
                                        辅助信息
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td bgcolor="#D2E9FF" align="right">
                                    保修期
                                </td>
                                <td valign="top" bgcolor="#eeeeee">
                                    <input type="text" name="warranty" style="width:49%">
                                </td>
                                <td bgcolor="#D2E9FF" align="right">
                                    替代品名称
                                </td>
                                <td valign="top" bgcolor="#eeeeee">
                                    <input type="text" name="twinName" style="width:49%">
                                </td>
                            </tr>
                            <tr>
                                <td bgcolor="#D2E9FF" align="right">
                                    替代品编号
                                </td>
                                <td valign="top" bgcolor="#eeeeee">
                                    <input type="text" name="twinId" style="width:49%">
                                </td>
                                <td bgcolor="#D2E9FF" align="right">
                                    生命周期(年)
                                </td>
                                <td valign="top" bgcolor="#eeeeee" >
                                    <input type="text" name="lifecycle" style="width:49%" >
                                </td>

                            </tr>
                            <tr>
                                <td bgcolor="#D2E9FF" align="right">
                                    单位
                                </td>
                                <td valign="top" bgcolor="#eeeeee" >
                                    <input type="text" name="amountUnit" style="width:49%">
                                </td>
                                <td bgcolor="#eeeeee">
                                </td>
                                <td bgcolor="#eeeeee">
                                </td>

                            </tr>

                            <tr>
                                <td bgcolor="#D2E9FF" align="right">
                                    档案附件
                                </td>
                                <td valign="top" bgcolor="#eeeeee" width="86.5%"
                                    colspan="3">
                                </a>&nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td bgcolor="#D2E9FF" align="right">
                                    供应商集合 &nbsp;
                                </td>
                                <td valign="top" bgcolor="#eeeeee">
                                    <textarea rows="4" name="providerGroup"></textarea>
                                </td>

                                <td bgcolor="#D2E9FF" align="right">
                                    产品描述 &nbsp;
                                </td>
                                <td valign="top" bgcolor="#eeeeee">
                                    <textarea rows="4" name="productDescribe"></textarea>
                                </td>
                            </tr>

                            <tr>
                                <td bgcolor="#D2E9FF" align="right">
                                    产品经理
                                </td>
                                <td valign="top" bgcolor="#eeeeee">
                                    <select class="SELECT_STYLE1" name="select4" style="width:66%">

                                    </select>
                                </td>

                                <td bgcolor="#D2E9FF" align="right">
                                    登记人
                                </td>
                                <td valign="top" bgcolor="#eeeeee">
                                    <input type="text" name="register" style="width:49%">
                                </td>
                            </tr>

                            <tr>
                                <td bgcolor="#D2E9FF" align="right">
                                    复核人
                                </td>
                                <td valign="top" bgcolor="#eeeeee">
                                    <input type="text" name="checker" style="width:49%">
                                </td>
                                <td bgcolor="#D2E9FF" align="right">
                                    复核时间&nbsp;
                                </td>
                                <td valign="top" bgcolor="#eeeeee">
                                    <input name="checkTime" readonly style="border: 0px;background:#eeeeee ;outline: none" width="100%">
                                </td>
                            </tr>

                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div class="x-box-bl">
            <div class="x-box-br">
                <div class="x-box-bc"></div>
            </div>
        </div>
    </div>
</form>
<script>
    $(":input[name='checkTime']").val(new Date().toLocaleString())
    $(":input[name='checker']").val('${sysUsers.loginId}');
    $(function () {
        $.post("../../DFile/showDFileById",{id:'${param.id}'},function (data) {
            $.each(data,function (key,value) {
                if(key=="checkTime"){
                    return ;
                }
                if(key=="checker"){
                    return ;
                }
                if(key=="type"){
                    $("select[name='select3'] option[value='"+value+"']").selected()
                    return
                }
                if(key=="productClass"){
                    $("select[name='productClass'] option[value='"+value+"']").selected()
                    return
                }
                if(key=="checkTag"){
                    return
                }
                $("#mutiValidation input[name="+key+"]").val(value)
            })
        })
        $("#mutiValidation").validate({
            submitHandler:function () {
                $("#mutiValidation").ajaxSubmit({
                    url:"/DFile/designFileVheckOk",
                    type:"post",
                    dataType:"json",
                    success:function (data) {
                        alert(data.msg)
                        if(data.code=='1'){
                            location.href="check_list.jsp";
                        }
                    }
                })
            }
        })
    })
</script>
</body>
</html>
